package com.javasm.gg.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.javasm.gg.Goods;
import com.javasm.gg.Supplier;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SupplierDao extends BaseMapper<Supplier> {
    List<Goods> listGoodsBySupplierId(Integer sid);

    int removeGoodsBySupplierId(String sid);
    int removeOneGoodsByGid(@Param("gid")String goodsid,@Param("sid") String sid);

    int addGoods2Supplier(@Param("gids") String[] goodsid,@Param("sid") String sid);
}
